/* 
 * File:   Size.h
 * Author: gustavo
 *
 * Created on June 9, 2012, 5:31 AM
 */

#ifndef SIZE_HPP
#define	SIZE_HPP

namespace imp {

    //template <typename T> class Matrix;

    struct Size {
        int width;
        int height;
    };

//    template <typename T> static Size size(Matrix<T>& M) {
//        Size s;
//        s.width = M.columns;
//        s.height = M.rows;
//        return s;
//    }

    static inline bool operator ==(Size& s1, Size& s2) {
        return ((s1.width == s2.width) && (s1.height == s2.height));
    }

    static inline bool operator !=(Size& s1, Size& s2) {
        return !(s1 == s2);
    }

}



#endif	/* SIZE_HPP */

